home *** CD-ROM | disk | FTP | other *** search
/ PC Users 1998 March / Pc Users extra 6.iso / pshare95 / prog / formula1 / vcform1.z / VCF15.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-24  |  8.1 KB  |  337 lines

  1. #ifndef __VCF15_H__
  2. #define __VCF15_H__
  3.  
  4. #include <objbase.h>
  5.  
  6. typedef enum {
  7.     F1ColWidthUnitsCharacters = 0,
  8.     F1ColWidthUnitsTwips = 1
  9. } F1ColWidthUnitsConstants;
  10.  
  11. typedef enum {
  12.     F1RowHeightAuto = -1
  13. } F1RowHeightConstants;
  14.  
  15. typedef enum {
  16.     F1Off = 0,
  17.     F1On = 1,
  18.     F1Auto = 2
  19. } F1ShowOffOnAutoConstants;
  20.  
  21. typedef enum {
  22.     F1TabsOff = 0,
  23.     F1TabsBottom = 1,
  24.     F1TabsTop = 2
  25. } F1ShowTabsConstants;
  26.  
  27. typedef enum {
  28.     F1ModeNormal = 0,
  29.     F1ModeLine = 1,
  30.     F1ModeRectangle = 2,
  31.     F1ModeOval = 3,
  32.     F1ModeArc = 4,
  33.     F1ModeChart = 5,
  34.     F1ModeField = 6,
  35.     F1ModeButton = 7,
  36.     F1ModePolygon = 8,
  37.     F1ModeCheckBox = 9,
  38.     F1ModeDropDown = 10
  39. } F1ModeConstants;
  40.  
  41. typedef enum {
  42.     F1PolyEditModeNormal = 0,
  43.     F1PolyEditModePoints = 1
  44. } F1PolyEditModeConstants;
  45.  
  46. typedef enum {
  47.     F1ShiftHorizontal = 1,
  48.     F1ShiftVertical = 2,
  49.     F1ShiftRows = 3,
  50.     F1ShiftCols = 4,
  51.     F1FixupNormal = 0,
  52.     F1FixupPrepend = 16,
  53.     F1FixupAppend = 32
  54. } F1ShiftTypeConstants;
  55.  
  56. typedef enum {
  57.     F1ODBCErrorAbort = 0,
  58.     F1ODBCErrorSkipRow = 1,
  59.     F1ODBCErrorTryAgain = 2
  60. } F1ODBCExecuteErrorConstants;
  61.  
  62. typedef enum {
  63.     F1CDataChar = 0,
  64.     F1CDataDouble = 1,
  65.     F1CDataDate = 2,
  66.     F1CDataTime = 3,
  67.     F1CDataTimeStamp = 4,
  68.     F1CDataBool = 5,
  69.     F1CDataLong = 6
  70. } F1CDataTypesConstants;
  71.  
  72. typedef enum {
  73.     F1HAlignGeneral = 1,
  74.     F1HAlignLeft = 2,
  75.     F1HAlignCenter = 3,
  76.     F1HAlignRight = 4,
  77.     F1HAlignFill = 5,
  78.     F1HAlignJustify = 6,
  79.     F1HAlignCenterAcrossCells = 7
  80. } F1HAlignConstants;
  81.  
  82. typedef enum {
  83.     F1VAlignTop = 1,
  84.     F1VAlignCenter = 2,
  85.     F1VAlignBottom = 3
  86. } F1VAlignConstants;
  87.  
  88. typedef enum {
  89.     F1ClearDlg = 0,
  90.     F1ClearAll = 1,
  91.     F1ClearFormats = 2,
  92.     F1ClearValues = 3
  93. } F1ClearTypeConstants;
  94.  
  95. typedef enum {
  96.     F1FileFormulaOne = 1,
  97.     F1FileExcel4 = 2,
  98.     F1FileTabbedText = 3,
  99.     F1FileExcel5 = 4,
  100.     F1FileFormulaOne3 = 5,
  101.     F1FileTabbedTextValuesOnly = 6,
  102.     F1FileHTML = 9,
  103.     F1FileHTMLDataOnly = 10
  104. } F1FileTypeConstants;
  105.  
  106. typedef enum {
  107.     F1ObjLine = 1,
  108.     F1ObjRectangle = 2,
  109.     F1ObjOval = 3,
  110.     F1ObjArc = 4,
  111.     F1ObjChart = 5,
  112.     F1ObjButton = 7,
  113.     F1ObjPolygon = 8,
  114.     F1ObjCheckBox = 9,
  115.     F1ObjDropDown = 10,
  116.     F1ObjPicture = 11
  117. } F1ObjTypeConstants;
  118.  
  119. typedef enum {
  120.     F1FindMatchCase = 1,
  121.     F1FindEntireCells = 2,
  122.     F1FindMatchBytes = 4,
  123.     F1FindByRows = 0,
  124.     F1FindByColumns = 8,
  125.     F1FindInFormulas = 0,
  126.     F1FindInValues = 16,
  127.     F1FindReplaceAll = 32
  128. } F1FindReplaceConstants;
  129.  
  130. typedef enum {
  131.     F1ReplaceYes = 0,
  132.     F1ReplaceNo = 1,
  133.     F1ReplaceCancel = 2
  134. } F1BeforeReplaceConstants;
  135.  
  136. typedef enum {
  137.     F1ErrorNone = 0,
  138.     F1ErrorGeneral = 20001,
  139.     F1ErrorBadArgument = 20002,
  140.     F1ErrorNoMemory = 20003,
  141.     F1ErrorBadFormula = 20004,
  142.     F1ErrorBufTooShort = 20005,
  143.     F1ErrorNotFound = 20006,
  144.     F1ErrorBadRC = 20007,
  145.     F1ErrorBadHSS = 20008,
  146.     F1ErrorTooManyHSS = 20009,
  147.     F1ErrorNoTable = 20010,
  148.     F1ErrorUnableToOpenFile = 20011,
  149.     F1ErrorInvalidFile = 20012,
  150.     F1ErrorInsertShiftOffTable = 20013,
  151.     F1ErrorOnlyOneRange = 20014,
  152.     F1ErrorNothingToPaste = 20015,
  153.     F1ErrorBadNumberFormat = 20016,
  154.     F1ErrorTooManyFonts = 20017,
  155.     F1ErrorTooManySelectedRanges = 20018,
  156.     F1ErrorUnableToWriteFile = 20019,
  157.     F1ErrorNoTransaction = 20020,
  158.     F1ErrorNothingToPrint = 20021,
  159.     F1ErrorPrintMarginsDontFit = 20022,
  160.     F1ErrorCancel = 20023,
  161.     F1ErrorUnableToInitializePrinter = 20024,
  162.     F1ErrorStringTooLong = 20025,
  163.     F1ErrorFormulaTooLong = 20026,
  164.     F1ErrorUnableToOpenClipboard = 20027,
  165.     F1ErrorPasteWouldOverflowSheet = 20028,
  166.     F1ErrorLockedCellsCannotBeModified = 20029,
  167.     F1ErrorLockedDocCannotBeModified = 20030,
  168.     F1ErrorInvalidName = 20031,
  169.     F1ErrorCannotDeleteNameInUse = 20032,
  170.     F1ErrorUnableToFindName = 20033,
  171.     F1ErrorNoWindow = 20034,
  172.     F1ErrorSelection = 20035,
  173.     F1ErrorTooManyObjects = 20036,
  174.     F1ErrorInvalidObjectType = 20037,
  175.     F1ErrorObjectNotFound = 20038,
  176.     F1ErrorInvalidRequest = 20039,
  177.     F1ErrorBadValidationRule = 20040,
  178.     F1ErrorBadInputMask = 20041,
  179.     F1ErrorValidationFailed = 20042,
  180.     F1ErrorNoODBCConnection = 20043,
  181.     F1ErrorUnableToLoadODBC = 20044,
  182.     F1ErrorUnsupportedFeature = 20045,
  183.     F1ErrorBadArray = 20046,
  184.     F1InvalidODBCParameterBinding = 20047,
  185.     F1InvalidStatementHandle = 20048,
  186.     F1BadPrepareStatement = 20049,
  187.     F1NotAvailableInSafeMode = 20050
  188. } F1ErrorConstants;
  189.  
  190. typedef enum {
  191.     F1ControlNoCell = 0,
  192.     F1ControlCellValue = 1,
  193.     F1ControlCellText = 2
  194. } F1ControlCellConstants;
  195.  
  196. typedef enum {
  197.     F1HInsideBorder = -2,
  198.     F1VInsideBorder = -1,
  199.     F1TopBorder = 0,
  200.     F1LeftBorder = 1,
  201.     F1BottomBorder = 2,
  202.     F1RightBorder = 3
  203. } F1BorderConstants;
  204.  
  205. typedef enum {
  206.     F1PasteAll = 0,
  207.     F1PasteFormulas = 1,
  208.     F1PasteValues = 2,
  209.     F1PasteFormats = 3
  210. } F1PasteWhatConstants;
  211.  
  212. typedef enum {
  213.     F1PasteOpNone = 0
  214. } F1PasteOpConstants;
  215.  
  216. typedef enum {
  217.     F1BorderNone = 0,
  218.     F1BorderThin = 1,
  219.     F1BorderMedium = 2,
  220.     F1BorderDashed = 3,
  221.     F1BorderDotted = 4,
  222.     F1BorderThick = 5,
  223.     F1BorderDouble = 6,
  224.     F1BorderHair = 7
  225. } F1BorderStyleConstants;
  226.  
  227. typedef enum {
  228.     F1BookBorderNone = 0,
  229.     F1BookBorderThin = 1
  230. } F1BookBorderConstants;
  231.  
  232. typedef enum {
  233.     F1AllPages = 2147483647,
  234.     F1AllExcept = 0x80000000,
  235.     F1NumberPage = 1,
  236.     F1AlignmentPage = 2,
  237.     F1FontPage = 4,
  238.     F1BorderPage = 8,
  239.     F1PatternsPage = 16,
  240.     F1ProtectionPage = 32,
  241.     F1ValidationPage = 64,
  242.     F1LineStylePage = 128,
  243.     F1NamePage = 256,
  244.     F1OptionsPage = 512,
  245.     F1AutoFillPage = 1024,
  246.     F1CalculationPage = 2048,
  247.     F1ColorPage = 4096,
  248.     F1EditPage = 8192,
  249.     F1GeneralPage = 16384,
  250.     F1ViewPage = 32768,
  251.     F1SelectionPage = 65536
  252. } F1DialogPageConstants;
  253.  
  254. typedef enum {
  255.     F1NoType = -1,
  256.     F1GeneralType = 0,
  257.     F1NumberType = 1,
  258.     F1CurrencyType = 2,
  259.     F1DateType = 3,
  260.     F1DateTimeType = 4,
  261.     F1PercentType = 5,
  262.     F1FractionType = 6,
  263.     F1ScientificType = 7,
  264.     F1StringType = 8
  265. } F1FormatTypeConstants;
  266.  
  267. typedef enum {
  268.     F1AnsiCharSet = 0,
  269.     F1SymbolCharSet = 2,
  270.     F1ShiftJisCharSet = 128,
  271.     F1HangeulCharSet = 129,
  272.     F1GB2312CharSet = 134,
  273.     F1ChineseBig5CharSet = 136,
  274.     F1OemCharSet = 255,
  275.     F1JohabCharSet = 130,
  276.     F1HebrewCharSet = 177,
  277.     F1ArabicCharSet = 178,
  278.     F1GreekCharSet = 161,
  279.     F1TurkishCharSet = 162,
  280.     F1VietnameseCharSet = 163,
  281.     F1ThaiCharSet = 222,
  282.     F1EastEuropeCharSet = 238,
  283.     F1RussianCharSet = 204,
  284.     F1MacCharSet = 77,
  285.     F1BalticCharSet = 186
  286. } F1CharSetConstants;
  287.  
  288. typedef enum {
  289.     F1CellAlignHorizontal = 8,
  290.     F1CellWordWrap = 9,
  291.     F1CellAlignVertical = 10,
  292.     F1CellFontName = 11,
  293.     F1CellFontCharSet = 12,
  294.     F1CellFontSize = 13,
  295.     F1CellFontBold = 14,
  296.     F1CellFontItalic = 15,
  297.     F1CellFontUnderline = 16,
  298.     F1CellFontStrikeout = 17,
  299.     F1CellFontColor = 18,
  300.     F1CellNumberFormat = 19,
  301.     F1CellPatternStyle = 20,
  302.     F1CellPatternFG = 21,
  303.     F1CellPatternBG = 22,
  304.     F1CellProtectionLocked = 23,
  305.     F1CellProtectionHidden = 24,
  306.     F1CellValidationRule = 25,
  307.     F1CellValidationText = 26
  308. } F1CellAttrConstants;
  309.  
  310. typedef enum {
  311.     F1Default = 0,
  312.     F1Arrow = 1,
  313.     F1Cross = 2,
  314.     F1IBeam = 3,
  315.     F1Icon = 4,
  316.     F1Size = 5,
  317.     F1SizeNESW = 6,
  318.     F1SizeNS = 7,
  319.     F1SizeNWSE = 8,
  320.     F1SizeWE = 9,
  321.     F1UpArrow = 10,
  322.     F1Hourglass = 11,
  323.     F1NoDrop = 12,
  324.     F1ArrowAndHourglass = 13,
  325.     F1ArrowAndQuestion = 14,
  326.     F1SizeAll = 15,
  327.     F1Custom = 99
  328. } F1MousePointerConstants;
  329.  
  330.  
  331. DEFINE_GUID(CLSID_F1FileSpec,0x13e51024,0xa52b,0x11d0,0x86,0xda,0x00,0x60,0x8c,0xb9,0xfb,0xfb);
  332. DEFINE_GUID(CLSID_F1ODBCConnect,0x13e51028,0xa52b,0x11d0,0x86,0xda,0x00,0x60,0x8c,0xb9,0xfb,0xfb);
  333. DEFINE_GUID(CLSID_F1ODBCQuery,0x13e5102a,0xa52b,0x11d0,0x86,0xda,0x00,0x60,0x8c,0xb9,0xfb,0xfb);
  334. DEFINE_GUID(CLSID_F1BookView,0x13e51031,0xa52b,0x11d0,0x86,0xda,0x00,0x60,0x8c,0xb9,0xfb,0xfb);
  335.  
  336. #endif // __VCF15_H__
  337.